// 接口在数组和枚举中的使用
{
  enum SexType {
    BOY,
    GIRL,
  }
  interface UserInterface {
    name: string,
    age: number,
    sex: SexType
  }

  const zrf: UserInterface = {
    name: 'zrf',
    age: 22,
    sex: SexType.BOY
  }

  const zeng: UserInterface = {
    name: 'zeng',
    age: 23,
    sex: SexType.BOY
  }
  const users: UserInterface[] = [zrf, zeng]
  console.log(users);

}